﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Services : System.Web.UI.Page
{
    DataClassesDataContext db = new DataClassesDataContext();
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            int id = int.Parse(Request.QueryString["id"].ToString());
            var service = (db.Services.Where(c => c.ServiceID == id)).SingleOrDefault();
            if (service != null)
            {
                Literal1.Text = service.ServiceContent;
            }
        }
        catch {
            Response.Redirect("Default.aspx");
        }
    }   
}